package com.glodon.paas.consumer.service.bean;


public class FileAPIInfo extends APIInfoBase {
	
	public FileAPIInfo(String apitype){
		if("internal".equalsIgnoreCase(apitype)){
			baseURI = "/document/api/internal/file";
		}
		else{
			baseURI = "/document/api/file";
		}
	    apis.add("-------------------------------------File API Test-----------------------------------------------------");
	    apis.add("[GET]/{filePath:.+}?meta[&type=id] | child[&type=id] | revision[&type=id] | uploaded[&type=id] | [rev={revisionNum}][&type=id]");
	    apis.add("[POST]/{filePath:.+}?fileSize={fileSize}[&type=id][&position={position}] | folder");
	    apis.add("[DELETE]/{filePath:.+}?[target=recycler][&type=id]");
	    apis.add("[PUT]/{filePath:.+}?name={newName}[&type=id]");
	}
}
